package com.personal.common.util;

import java.util.List;

import net.sf.json.util.PropertyFilter;

public class JSONPropertyFilter implements PropertyFilter {
	private List<String>  propertyList;

	public JSONPropertyFilter(List<String> propertyList) {
		this.propertyList = propertyList;
	}

	public boolean apply(Object source, String name, Object value) {
		for (String property : propertyList) {
			if(property.equals(name)){
				return false;
			}
		}
		return true;
	}
}
